

add_library(utils STATIC
        media_packet.cpp
        ${PROJECT_SOURCE_DIR}/src/include/utils/media_packet.h
        media_frame.cpp
        ${PROJECT_SOURCE_DIR}/src/include/utils/media_frame.h
        ../include/utils/video_config.hpp
        ../include/utils/audio_config.hpp
        video_meta.cpp
        ../include/utils/video_meta.h
        codec_id_to_string.cpp
        ../include/utils/codec_id_to_string.h
        ../include/utils/color_space_to_string.h
        color_space_to_string.cpp
        process.cpp
        ../include/utils/process.hpp)

target_include_directories(utils
        PUBLIC ${PROJECT_SOURCE_DIR}/src/include/utils
        PUBLIC ${FFMPEG_INCLUDE_DIRS})

target_link_directories(utils PUBLIC ${FFMPEG_LIBRARY_DIRS})

target_link_libraries(utils PUBLIC ${FFMPEG_LIBRARIES} PUBLIC error PUBLIC glog::glog PUBLIC interfaces)